<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>背景练习</title>
		<style type="text/css">
			.container {
				
				width: 1020px;
				height: 1900px;
				margin: 200px auto 0;
				background-color: #e5e5e5;
			}
			.inner {
				width: 100%;
				height: 700px;
				background-image: url(../../img/bg2.jpg);
				background-position: center; /*背景图片垂直水平都居中*/
				margin-top: 200px;
				background-attachment: fixed;
			}
			.inner1 {
				width: 100%;
				height: 700px;
				background-image: url(../../img/bg3.jpg);
				background-position: center; /*背景图片垂直水平都居中*/
				padding-top: 200px;
				background-attachment: fixed;
			}
			.content {
				margin-top: -200px;
				width: 100%;
				height: 300px;
				background-color: #55A532;
				
			}
		</style>
	</head>
	<body>
		<div class="container">
			<div class="inner">
				<div class="content">
					<img src="../../img/p1-img1.jpg" >
				</div>
			</div>
			<div class="inner1">
				<div class="content">
					<img src="../../img/p1-img3.jpg" >
				</div>
			</div>
		</div>
	</body>
</html>
